def factorial(N , mult = 1):
    if (N - 1) >= 1:
        print N
        mul = mult * N
        factorial(N - 1, mul)
    return mult
print factorial(10)
